<div id="content">

    <div id="content-header">

        <div id="breadcrumb"><a href="<?php echo site_url('Login/login') ?>" title="Go to Home" class="tip-bottom"><i
                class="icon-home"></i> 主页</a> <a href="#" class="current">客服工作台</a></div>

        <h1>游戏数据监测</h1>

    </div>

    <div class="container-fluid">

        <hr>

        <div class="row-fluid">

            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"><i class="icon-th"></i></span>
                        <h5>Data table</h5>
                    </div>
                    <div class="widget-content nopadding">
                        <table class="table table-bordered data-table">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>游戏名称</th>
                                <th>房号</th>
                                <th>创建时间</th>
                                <th>开始时间</th>
                                <th>房内局数</th>
                                <th>玩家人数</th>
                                <th>消耗房卡</th>
                                <th>玩家1</th>
                                <th>玩家2</th>
                                <th>玩家3</th>
                                <th>玩家4</th>

                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $rows=$data[0];
                            foreach($rows as $value):
                            $player=explode(',',$value['player_list']);
                            ?>
                            <tr class="gradeX">
                                <td><?php  echo $value['game_id']?></td>
                                <td><?php  echo $value['game_name']?></td>
                                <td><?php  echo $value['room_id']?></td>
                                <td class="center"><?php echo $value['create_time']?></td>
                                <td class="center"><?php  echo $value['start_time']?></td>
                                <td class="center"><?php  echo $value['game_number']?></td>
                                <td class="center"><?php  echo $value['play_number']?></td>
                                <td class="center"><?php  echo $value['card_cost']?></td>
                                <?php
                            for($i=0;$i<count($player);$i++):
                            ?>
                                <td class="center"><?php echo $player[$i]?></td>
                                <?php    endfor; ?>
                                <?php
                            for($i=count($player);$i<4;$i++):
                            ?>
                                <td class="center"><?php echo '-'?></td>
                                <?php    endfor; ?>
                            </tr>
                            <?php    endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>